<!DOCTYPE html>
<html lang="en"  xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8" >
    <title>测试1</title>
</head>
<body>
测试1
<a sec:authorize="hasRole('ROLE_ADD')" href="#">增加</a>
<a sec:authorize="hasRole('ROLE_UPDATE')" href="#">升级</a>

</body>
</html>